package Tween
{
	import Objects.GameTextField;
	
	import Plugin.TweenObjectPlugin;

	public class IncreaseTween extends TweenObjectPlugin
	{
		public var startValue:int=0;
		public var endValue:int=0;
		public function IncreaseTween()
		{
			super();
		}
		override protected function _update():void
		{
			if(time==0)return;
			
			var value:Number = 0;
			value = easeing(time,startValue,endValue-startValue,duration);
			field.textField.text=String(value);
		}
		public function get field():GameTextField
		{
			return go as GameTextField;
		}
	}
}